package org.convallaria.framework.common.constants;

/**
 * 系统通用常量
 * 
 * @author gjh
 * @since 2024-09-24
 */
public final class CommonConstants {

    private CommonConstants() {}

    // ===== 系统常量 =====
    
    /**
     * 系统名称
     */
    public static final String SYSTEM_NAME = "Convallaria";
    
    /**
     * 系统版本
     */
    public static final String SYSTEM_VERSION = "v1.0.0";
    
    /**
     * 默认编码
     */
    public static final String DEFAULT_ENCODING = "UTF-8";
    
    /**
     * 默认时区
     */
    public static final String DEFAULT_TIMEZONE = "GMT+8";
    
    // ===== 响应状态 =====
    
    /**
     * 操作成功
     */
    public static final int SUCCESS = 200;
    
    /**
     * 系统异常
     */
    public static final int ERROR = 500;
    
    /**
     * 请求参数错误
     */
    public static final int BAD_REQUEST = 400;
    
    /**
     * 权限不足
     */
    public static final int FORBIDDEN = 403;
    
    /**
     * 资源未找到
     */
    public static final int NOT_FOUND = 404;
    
    // ===== 分页常量 =====
    
    /**
     * 默认页码
     */
    public static final long DEFAULT_PAGE_CURRENT = 1L;
    
    /**
     * 默认每页大小
     */
    public static final long DEFAULT_PAGE_SIZE = 10L;
    
    /**
     * 最大每页大小
     */
    public static final long MAX_PAGE_SIZE = 1000L;
    
    // ===== 数据状态 =====
    
    /**
     * 启用状态
     */
    public static final Integer STATUS_ENABLED = 1;
    
    /**
     * 禁用状态
     */
    public static final Integer STATUS_DISABLED = 0;
    
    /**
     * 删除状态
     */
    public static final Integer STATUS_DELETED = 1;
    
    /**
     * 未删除状态
     */
    public static final Integer STATUS_NOT_DELETED = 0;
    
    // ===== 通用字符串 =====
    
    /**
     * 空字符串
     */
    public static final String EMPTY_STRING = "";
    
    /**
     * 逗号分隔符
     */
    public static final String COMMA = ",";
    
    /**
     * 点分隔符
     */
    public static final String DOT = ".";
    
    /**
     * 下划线分隔符
     */
    public static final String UNDERSCORE = "_";
    
    /**
     * 短横线分隔符
     */
    public static final String DASH = "-";
    
    /**
     * 斜杠分隔符
     */
    public static final String SLASH = "/";
}
